#include <algorithm>
#include <iostream>
#include <string>

using namespace std;

string word[30];

int main() {
    int n;
    cin >> n;

    for(int i = 0; i < n; i++) {
        cin >> word[i];
    }

    sort(word, word + n);

    for(int i = 0; i < n; i++) {
        if(i)
            cout << " ";

        cout << word[i];
    }

    cout << endl;

    return 0;
}
